var express = require('express');
var router = express.Router();
const { UserModel } = require('./model/model')

/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/text',(req,res)=>{
  res.send({
    code: 200,
    data: 'text'
  })
})

router.get('/login', function (req, res, next) {
  res.send({
    code: 200,
    data: req.auth
  })
});


module.exports = router;
